-- tear_damage
-- created by shuzy
-- 攻击带伤口的敌人，造成百分比额外伤害

return {
    apply = function(prop, baseValue)
        -- 返回额外的伤害值
        return math.modf(baseValue * prop[3] / 1000);
    end,

    -- 对敌伤害触发
    trigger = function(who, prop, arg)
        -- 返回攻击方基础攻击n倍的额外伤害
        local attack = InterfaceM.calcBaseAttrib(who, "attack");

        return math.max(0, math.modf(attack * prop[3] / 1000));
    end,

    record = function(target, prop, path)
        return false;
    end
};
